var att = Xrm.Page.getAttribute("new_attribute");
var priv = att.getUserPrivilege();
if (priv.canCreate) {
    ExecutionObj.getEventArgs().preventDefault();
}

var win = Xrm.Utility.openEntityForm("contact");
var x = Xrm.Page.context.getOrgLcid();
if (typeof (x) == typeof (Number)) {
    return true;
}

var selectorItem = Xrm.Page.ui.formSelector.items.get(0);
selectorItem.navigate();

var controlItem = Xrm.Page.ui.controls.get(1);
controlItem.getVisible();
